import getpass
card = int(getpass.getpass("请输入数字："))
print(card)
count = 0
if card < 100 and card > 0:
    while True:
        if count < 3:
            user_guess = int(input("请猜一猜："))
            print(type(user_guess))
            if card == user_guess:
                print("恭喜你答对了!")
                break
            elif card > user_guess:
                print("往大了猜！")
            else:
                print("太大了，往小的猜！")
            count = count + 1
            continue
        else:
            print("猜这么多次都不对!")
        print("正确答案：%s" % (card))
        break
else:
    print("请输入数字在0-99之间！")


